package com.qing.microservices.shirostudy.service;

import com.qing.microservices.shirostudy.entity.Role;
import com.qing.microservices.shirostudy.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Q
 * @since 2023-06-06
 */
public interface IUserService extends IService<User> {

    /**
     * @param username
     * @return
     */
    User queryByUsername(String username);

    List<Role> queryUserRoles(long userId);
}
